package com.jchao.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jchao.auth.mapper.SysUserRoleMapper;
import com.jchao.auth.service.SysUserRoleService;
import com.jchao.model.system.SysRole;
import com.jchao.model.system.SysUserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    @Autowired
    private SysUserRoleMapper userRoleMapper;
    @Override
    public List<SysRole> findRoleByAdminId(Long userId) {
        return userRoleMapper.findRoleByAdminId(userId);

    }
}
